package com.zjq.smartdevice.events;

import com.zjq.smartdevice.enums.LoginResutEnum;

/**
 * @User zhangjiaqi
 * @Project project
 * @Package com.zjq.smartdevice.event
 * @Date 2022/3/17 11:16
 */
public class MyLoginEvent {
    private LoginResutEnum loginResutEnum;
    private String userName;//当前登录的用户名



    public MyLoginEvent(LoginResutEnum loginResutEnum,String userName) {
        this.loginResutEnum = loginResutEnum;
        this.userName = userName;
    }

    public LoginResutEnum getLoginResutEnum() {
        return loginResutEnum;
    }

    public void setLoginResutEnum(LoginResutEnum loginResutEnum) {
        this.loginResutEnum = loginResutEnum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "MyLoginEvent{" +
                "loginResutEnum=" + loginResutEnum +
                ", userName='" + userName + '\'' +
                '}';
    }
}
